package windowBuilderExample;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.JComboBox;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.JToggleButton;
import javax.swing.JPanel;
import javax.swing.JCheckBox;
import javax.swing.JFormattedTextField;
import javax.swing.JTextPane;
import javax.swing.JTextArea;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.CardLayout;
import javax.swing.JTextField;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
import java.awt.Dimension;

public class UiExampleFirstLayoutMager {

	private JFrame frame;
	private JPanel topCenterPanel;
	private JPanel topCenterCenterPane;
	private JPanel topCenterEastPane;
	private JTextArea textArea;
	private JPanel panel;
	private JPanel panel_1;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JButton btnNewButton;
	private JButton btnNewButton_1;
	private JPanel panel_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UiExampleFirstLayoutMager window = new UiExampleFirstLayoutMager();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public UiExampleFirstLayoutMager() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(new BorderLayout(0, 0));
		
		topCenterPanel = new JPanel();
		topCenterPanel.setBorder(new TitledBorder(null, "Genes", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		frame.getContentPane().add(topCenterPanel);
		topCenterPanel.setLayout(new BorderLayout(0, 0));
		
		topCenterCenterPane = new JPanel();
		topCenterPanel.add(topCenterCenterPane, BorderLayout.CENTER);
		topCenterCenterPane.setLayout(new BorderLayout(0, 0));
		
		textArea = new JTextArea();
		topCenterCenterPane.add(textArea, BorderLayout.CENTER);
		
		topCenterEastPane = new JPanel();
		topCenterPanel.add(topCenterEastPane, BorderLayout.EAST);
		topCenterEastPane.setLayout(new BorderLayout(0, 0));
		
		panel = new JPanel();
		panel.setPreferredSize(new Dimension(220, 10));
		panel.setBorder(new TitledBorder(null, "Gene Information", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		topCenterEastPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		panel_2 = new JPanel();
		panel_2.setPreferredSize(new Dimension(200, 100));
		panel.add(panel_2);
		panel_2.setLayout(new GridLayout(0, 2, 0, 0));
		
		textField = new JTextField();
		panel_2.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		panel_2.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		panel_2.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		panel_2.add(textField_3);
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		panel_2.add(textField_4);
		textField_4.setColumns(10);
		
		textField_5 = new JTextField();
		panel_2.add(textField_5);
		textField_5.setColumns(10);
		
		textField_6 = new JTextField();
		panel_2.add(textField_6);
		textField_6.setColumns(10);
		
		textField_7 = new JTextField();
		panel_2.add(textField_7);
		textField_7.setColumns(10);
		
		panel_1 = new JPanel();
		panel.add(panel_1);
		
		btnNewButton = new JButton("+");
		panel_1.add(btnNewButton);
		
		btnNewButton_1 = new JButton("-");
		panel_1.add(btnNewButton_1);
	}  
}
